| Conditions | 1 |
| Paths | 1 |
| Total Lines | 33 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | /* |
||
| 8 | module.exports = function(grunt) { |
||
| 9 | |||
| 10 | // Project configuration. |
||
| 11 | grunt.initConfig({ |
||
| 12 | |||
| 13 | // Cleanup the optimized images directory. |
||
| 14 | clean: { |
||
| 15 | test: ['tmp/images-optimized'] |
||
| 16 | }, |
||
| 17 | guetzli: { |
||
| 18 | files: { |
||
| 19 | expand: true, |
||
| 20 | src: 'tmp/images/*.jpg', |
||
| 21 | dest: 'tmp/images-optimized' |
||
| 22 | }, |
||
| 23 | options: { |
||
| 24 | verbose: false, |
||
| 25 | quality: 84 |
||
| 26 | } |
||
| 27 | } |
||
| 28 | |||
| 29 | }); |
||
| 30 | |||
| 31 | // Actually load this plugin's task(s). |
||
| 32 | grunt.loadTasks('tasks'); |
||
| 33 | |||
| 34 | // These plugins provide necessary tasks. |
||
| 35 | grunt.loadNpmTasks('grunt-contrib-clean'); |
||
| 36 | |||
| 37 | // test task. |
||
| 38 | grunt.registerTask('test', ['guetzli']); |
||
| 39 | |||
| 40 | }; |
||
| 41 |